home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
HIPanels.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-05-01
|
11KB
|
316 lines
/*
* This file was generated by the SOM Compiler.
* FileName: HIPanels.h.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emith.dll: 2.33
*/
#ifndef SOM_HIPanel_h
#define SOM_HIPanel_h
/*
* Passthru lines: File: "C.h", "before"
*/
#include <Collections.h>
#include <Drag.h>
#include <Quickdraw.h>
#include <TextObjects.h>
#include <Types.h>
#include <HIPanelTypes.h>
#include <som.h>
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* Define the class name as an object type
*/
#ifndef HIPanel
#define HIPanel SOMObject
#endif
#include <HIObjects.h>
/*
* Start of user-defined types:
*/
#ifndef SOMClass
#define SOMClass SOMObject
#endif /* SOMClass */
#ifndef SOMObject
#define SOMObject SOMObject
#endif /* SOMObject */
#ifndef HIWindow
#define HIWindow SOMObject
#endif /* HIWindow */
#ifndef HIEmbeddingPanel
#define HIEmbeddingPanel SOMObject
#endif /* HIEmbeddingPanel */
/*
* End of user-defined types.
*/
#define HIPanel_MajorVersion 0
#define HIPanel_MinorVersion 0
/*
* External name shortening if required
*/
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define HIPanelClassData d
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#ifdef OLDIBMSOMAPISUPPORT
#define HIPanel_classObj somNewClassReference(HIPanel)
#define _HIPanel HIPanel_classObj
#define HIPanelCClassData HIPanelClassData
#define HIPanelNewClass(major,minor) somNewVersionedClassReference(HIPanel,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define HIPanelMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/*
* Declare the class data structure
*/
SOMEXTERN struct HIPanelClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMAny *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken InitPanel;
somMToken GetEmbeddingParent;
somMToken RegisterInterestInAppleEvent;
somMToken SetAdornment;
somMToken GetAdornment;
somMToken HasValidContent;
somMToken GetDeepCollectionItemData;
somMToken reserved0;
somMToken reserved1;
somMToken reserved2;
somMToken reserved3;
somMToken reserved4;
} SOMDLINK HIPanelClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(HIPanel_Class_Source) && !defined(SOM_Module_hipanels_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list HIPanelClassData
#endif
#endif
/*
* New macro for HIPanel
*/
#define HIPanelNew() somNewObject(HIPanel)
/*
* New Method: GetEmbeddingParent
*/
typedef HIEmbeddingPanel* (SOMLINK *somTD_HIPanel_GetEmbeddingParent)(HIPanel *somSelf, Environment *ev);
#define somMD_HIPanel_GetEmbeddingParent "::HIPanel::GetEmbeddingParent"
#define HIPanel_GetEmbeddingParent(somSelf,ev) \
(SOM_Resolve(somSelf, HIPanel, GetEmbeddingParent) \
(somSelf,ev))
#ifndef SOMGD_GetEmbeddingParent
#if defined _GetEmbeddingParent || defined __GetEmbeddingParent
#undef _GetEmbeddingParent
#undef __GetEmbeddingParent
#define SOMGD_GetEmbeddingParent 1
#else
#define _GetEmbeddingParent HIPanel_GetEmbeddingParent
#endif /* _GetEmbeddingParent */
#endif /* SOMGD_GetEmbeddingParent */
/*
* New Method: InitPanel
*/
typedef OSStatus (SOMLINK *somTD_HIPanel_InitPanel)(HIPanel *somSelf, Environment *ev,
RefLabel* identifier,
HIWindow* window,
Rect* bounds);
#define somMD_HIPanel_InitPanel "::HIPanel::InitPanel"
#define HIPanel_InitPanel(somSelf,ev,identifier,window,bounds) \
(SOM_Resolve(somSelf, HIPanel, InitPanel) \
(somSelf,ev,identifier,window,bounds))
#ifndef SOMGD_InitPanel
#if defined _InitPanel || defined __InitPanel
#undef _InitPanel
#undef __InitPanel
#define SOMGD_InitPanel 1
#else
#define _InitPanel HIPanel_InitPanel
#endif /* _InitPanel */
#endif /* SOMGD_InitPanel */
/*
* New Method: RegisterInterestInAppleEvent
*/
typedef OSStatus (SOMLINK *somTD_HIPanel_RegisterInterestInAppleEvent)(HIPanel *somSelf, Environment *ev,
AEHandlerTableRef table,
AEEventClass eventClass,
AEEventID eventID,
HIEventRoutingType eventRouting);
#define somMD_HIPanel_RegisterInterestInAppleEvent "::HIPanel::RegisterInterestInAppleEvent"
#define HIPanel_RegisterInterestInAppleEvent(somSelf,ev,table,eventClass,eventID,eventRouting) \
(SOM_Resolve(somSelf, HIPanel, RegisterInterestInAppleEvent) \
(somSelf,ev,table,eventClass,eventID,eventRouting))
#ifndef SOMGD_RegisterInterestInAppleEvent
#if defined _RegisterInterestInAppleEvent || defined __RegisterInterestInAppleEvent
#undef _RegisterInterestInAppleEvent
#undef __RegisterInterestInAppleEvent
#define SOMGD_RegisterInterestInAppleEvent 1
#else
#define _RegisterInterestInAppleEvent HIPanel_RegisterInterestInAppleEvent
#endif /* _RegisterInterestInAppleEvent */
#endif /* SOMGD_RegisterInterestInAppleEvent */
/*
* New Method: HasValidContent
*/
typedef boolean (SOMLINK *somTD_HIPanel_HasValidContent)(HIPanel *somSelf, Environment *ev);
#define somMD_HIPanel_HasValidContent "::HIPanel::HasValidContent"
#define HIPanel_HasValidContent(somSelf,ev) \
(SOM_Resolve(somSelf, HIPanel, HasValidContent) \
(somSelf,ev))
#ifndef SOMGD_HasValidContent
#if defined _HasValidContent || defined __HasValidContent
#undef _HasValidContent
#undef __HasValidContent
#define SOMGD_HasValidContent 1
#else
#define _HasValidContent HIPanel_HasValidContent
#endif /* _HasValidContent */
#endif /* SOMGD_HasValidContent */
/*
* New Method: GetDeepCollectionItemData
*/
typedef OSStatus (SOMLINK *somTD_HIPanel_GetDeepCollectionItemData)(HIPanel *somSelf, Environment *ev,
CollectionTag tag,
SInt32 id,
ByteCount sizeAllowed,
ByteCount* sizeReturned,
void* itemData);
#define somMD_HIPanel_GetDeepCollectionItemData "::HIPanel::GetDeepCollectionItemData"
#define HIPanel_GetDeepCollectionItemData(somSelf,ev,tag,id,sizeAllowed,sizeReturned,itemData) \
(SOM_Resolve(somSelf, HIPanel, GetDeepCollectionItemData) \
(somSelf,ev,tag,id,sizeAllowed,sizeReturned,itemData))
#ifndef SOMGD_GetDeepCollectionItemData
#if defined _GetDeepCollectionItemData || defined __GetDeepCollectionItemData
#undef _GetDeepCollectionItemData
#undef __GetDeepCollectionItemData
#define SOMGD_GetDeepCollectionItemData 1
#else
#define _GetDeepCollectionItemData HIPanel_GetDeepCollectionItemData
#endif /* _GetDeepCollectionItemData */
#endif /* SOMGD_GetDeepCollectionItemData */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define HIPanel_GetWindow HIObject_GetWindow
#define HIPanel_GetPort HIObject_GetPort
#define HIPanel_GetRefLabel HIObject_GetRefLabel
#define HIPanel_GetCollection HIObject_GetCollection
#define HIPanel_Init HIObject_Init
#define HIPanel_Terminate HIObject_Terminate
#define HIPanel_Clone HIObject_Clone
#define HIPanel_Release HIObject_Release
#define HIPanel_GetOwnerCount HIObject_GetOwnerCount
#define HIPanel_InitFromAERecord HIObject_InitFromAERecord
#define HIPanel_WriteToAERecord HIObject_WriteToAERecord
#define HIPanel_CalculateOptimalSize HIObject_CalculateOptimalSize
#define HIPanel_GetBoundingRect HIObject_GetBoundingRect
#define HIPanel_SetBoundingRect HIObject_SetBoundingRect
#define HIPanel_SetPosition HIObject_SetPosition
#define HIPanel_SetSize HIObject_SetSize
#define HIPanel_GetUpdateRect HIObject_GetUpdateRect
#define HIPanel_Enable HIObject_Enable
#define HIPanel_Disable HIObject_Disable
#define HIPanel_IsEnabled HIObject_IsEnabled
#define HIPanel_Show HIObject_Show
#define HIPanel_Hide HIObject_Hide
#define HIPanel_IsVisible HIObject_IsVisible
#define HIPanel_HandleAppleEvent HIObject_HandleAppleEvent
#define HIPanel_HandleActivate HIObject_HandleActivate
#define HIPanel_HandleDeactivate HIObject_HandleDeactivate
#define HIPanel_HandleNavigation HIObject_HandleNavigation
#define HIPanel_HandleMouseDownInContent HIObject_HandleMouseDownInContent
#define HIPanel_HandleMouseMovedInContent HIObject_HandleMouseMovedInContent
#define HIPanel_HandleMouseStoppedMovingInContent HIObject_HandleMouseStoppedMovingInContent
#define HIPanel_HandleMouseUpInContent HIObject_HandleMouseUpInContent
#define HIPanel_TakeUserInputFocus HIObject_TakeUserInputFocus
#define HIPanel_ReleaseUserInputFocus HIObject_ReleaseUserInputFocus
#define HIPanel_HasUserInputFocus HIObject_HasUserInputFocus
#define HIPanel_CanReleaseUserInputFocus HIObject_CanReleaseUserInputFocus
#define HIPanel_SetUserInputFocusFlags HIObject_SetUserInputFocusFlags
#define HIPanel_GetUserInputFocusFlags HIObject_GetUserInputFocusFlags
#define HIPanel_SetTitle HIObject_SetTitle
#define HIPanel_GetTitle HIObject_GetTitle
#define HIPanel_Draw HIObject_Draw
#define HIPanel_Erase HIObject_Erase
#define HIPanel_Invalidate HIObject_Invalidate
#define HIPanel_GetDrawingMode HIObject_GetDrawingMode
#define HIPanel_SetDrawingMode HIObject_SetDrawingMode
#define HIPanel_SetBackgroundPattern HIObject_SetBackgroundPattern
#define HIPanel_GetBackgroundPattern HIObject_GetBackgroundPattern
#define HIPanel_Cut HIObject_Cut
#define HIPanel_Copy HIObject_Copy
#define HIPanel_Paste HIObject_Paste
#define HIPanel_Clear HIObject_Clear
#define HIPanel_GetClipboardSupportFlags HIObject_GetClipboardSupportFlags
#define HIPanel_AddStateChangeCallback HIObject_AddStateChangeCallback
#define HIPanel_RemoveStateChangeCallback HIObject_RemoveStateChangeCallback
#define HIPanel_GetHIObjectFromRefLabel HIObject_GetHIObjectFromRefLabel
#define HIPanel_GetNewHIObject HIObject_GetNewHIObject
#define HIPanel_GetNewHIObjectFromResource HIObject_GetNewHIObjectFromResource
#define HIPanel_DrawContent HIObject_DrawContent
#define HIPanel_EraseContent HIObject_EraseContent
#define HIPanel_TranslatePoint HIObject_TranslatePoint
#define HIPanel_TranslateRect HIObject_TranslateRect
#define HIPanel_StateChanged HIObject_StateChanged
#define HIPanel_SetClipboardSupportFlags HIObject_SetClipboardSupportFlags
#define HIPanel_Verify HIObject_Verify
#define HIPanel_somInit SOMObject_somInit
#define HIPanel_somUninit SOMObject_somUninit
#define HIPanel_somDuplicateReference SOMObject_somDuplicateReference
#define HIPanel_somCompareReference SOMObject_somCompareReference
#define HIPanel_somRelease SOMObject_somRelease
#define HIPanel_somFree SOMObject_somFree
#define HIPanel_somCanDelete SOMObject_somCanDelete
#define HIPanel_somGetClass SOMObject_somGetClass
#define HIPanel_somGetClassName SOMObject_somGetClassName
#define HIPanel_somGetSize SOMObject_somGetSize
#define HIPanel_somIsA SOMObject_somIsA
#define HIPanel_somRespondsTo SOMObject_somRespondsTo
#define HIPanel_somIsInstanceOf SOMObject_somIsInstanceOf
#define HIPanel_somDispatch SOMObject_somDispatch
#define HIPanel_somClassDispatch SOMObject_somClassDispatch
#define HIPanel_somCastObj SOMObject_somCastObj
#define HIPanel_somResetObj SOMObject_somResetObj
#define HIPanel_somPrintSelf SOMObject_somPrintSelf
#define HIPanel_somDumpSelf SOMObject_somDumpSelf
#define HIPanel_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */
#endif /* SOM_HIPanel_h */